package com.wsoft.system.service.impl;

import com.wsoft.core.service.*;
import com.wsoft.core.vo.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author z001
 * @Date 2024/11/6 10:56
 */
@Service
public class ExcelDataServiceImpl implements IExcelDateService {

    @Resource
    private CommonDictService dictService;
    @Resource
    private CommonOrgService commonOrgService;
    @Resource
    private CommonMemberService memberService;
    @Resource
    private CommonPostService postService;
    @Resource
    private CommonLevelService levelService;

    /**
     * 获取所有字典
     * @return
     */
    @Override
    public List<DictCacheVO> getDictAll() {
        return dictService.selectAllNoTree();
    }

    /**
     * 获取所有用户
     * @return
     */
    @Override
    public List<MemberVO> getUserAll() {
        return memberService.getMemberList();
    }

    /**
     * 获取所有组织
     * @return
     */
    @Override
    public List<OrganizationVO> getOrganizationAll() {
        return commonOrgService.getOrganizationAll();
    }

    @Override
    public List<PostVO> getPostAll() {
        return postService.getPostAll();
    }

    @Override
    public List<LevelVO> getLevelAll() {
        return levelService.getLevelAll();
    }

}
